package com.pbd.shared;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="partycontact")
public class PARTYCONTACT implements Serializable{

	public PARTYCONTACT() {

	}

	@Id
	@GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
	@Column(name = "partyContactId")
	private java.lang.Long partyContactId;
	
	
	@Column(name = "address", nullable = true, length = 50)
	private String address;
	
	@Column(name = "area", nullable = true, length = 30)
	private String area;
	
	@Column(name = "cityName" , nullable = true, length = 30)
	private String cityName;
	
	@Column(name = "stateName" , nullable = true, length = 30)
	private String stateName;
	
	@Column(name = "countryName", nullable = true, length = 30)
	private String countryName;
	
	
	@Column(name = "pinCode", nullable = true, length = 10)
	private String pinCode;
	

	@Column(name = "type", nullable = true, length = 10)
	private String type;


	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name = "partyId", insertable = false, updatable = false)
	private PARTY party;

	public java.lang.Long getPartyContactId() {
		return partyContactId;
	}

	public void setPartyContactId(java.lang.Long partyContactId) {
		this.partyContactId = partyContactId;
	}


	public PARTY getParty() {
		return party;
	}

	public void setParty(PARTY party) {
		this.party = party;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public String getPinCode() {
		return pinCode;
	}

	public void setPinCode(String pinCode) {
		this.pinCode = pinCode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	

}
